package com.bw.service;

import com.bw.bean.Spu;
import com.bw.dao.Spudao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class SpuserviceImp implements Spuservice {
    @Resource
    private Spudao spudao;


    @Override
    public List list(Map map) {
        return spudao.list(map);
    }

    @Override
    public int add(Spu spu) {
        return spudao.add(spu);
    }

    @Override
    public List listgoods(Integer pid) {
        return spudao.listgoods(pid);
    }

    @Override
    public List listxl(Integer bid) {
        return spudao.listxl(bid);
    }

    @Override
    public int upd(Spu spu) {
        return spudao.upd(spu);
    }


    @Override
    public Map getByid(Integer sid) {
        return spudao.getByid(sid);
    }

    @Override
    public int del(Integer sid) {
        return spudao.del(sid);
    }

    @Override
    public int dels(String sid) {
        return spudao.dels(sid);
    }
}
